import request from '/@/utils/request';

export const getPage = (query: any) =>
	request({
		url: '/mall/mobiletheme/page',
		method: 'get',
		params: query,
	});

export const getById = (id: string) =>
	request({
		url: '/mall/mobiletheme/' + id,
		method: 'get',
	});

export const addObj = (data: any) =>
	request({
		url: '/mall/mobiletheme',
		method: 'post',
		data,
	});

export const editObj = (data: any) =>
	request({
		url: '/mall/mobiletheme',
		method: 'put',
		data,
	});

export const delObj = (id: string) =>
	request({
		url: '/mall/mobiletheme/' + id,
		method: 'delete',
	});

export const getList = () =>
	request({
		url: '/mall/mobiletheme/list',
		method: 'get',
	});
